<?php

define("DEMO_DIR", dirname(__FILE__)."/..");
define("MODEL_DIR", DEMO_DIR."/model");

require_once(MODEL_DIR."/user.php");
require_once(MODEL_DIR."/userdao.php");
require_once(MODEL_DIR."/filesystem.php");


$fs = new filesystem("liming", 7);
$fs->initDirectory();

$list = $fs->listDirectory("/home");
var_export($list);

$fs->copy("/work/w", "/home/w");
$fs->move("/home/w", "/home/c");
$fs->copy("/work/w", "/home/w");
$fs->deleteFile("/home/c");
